package com.springweb.unit2.annotated.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.springweb.unit2.annotated.CompactDisc;
import com.springweb.unit2.annotated.MediaPlayer;
@Component("cdPlayer")
public class CDPlayer implements MediaPlayer {
	@Autowired
	private CompactDisc sgtPeppers;
	@Override
	public void play() {
		sgtPeppers.play();
	}

}
